#include "block_1x1.h"

// 创建Block_1x1实例的函数
sprite* createBlock_1x1() {
    return new Block_1x1();
}

// 构造函数
Block_1x1::Block_1x1() {
    this->width = GRID_WIDTH;
    this->height = GRID_HEIGHT;
    this->isCollisionable = true;// 阻塞
    this->spriteType = sprite_type_block_1x1,
    this->imgBlock_1x1 = new IMAGE;
    loadimage(this->imgBlock_1x1, "img/block_1x1.png");
};

// 析构函数
Block_1x1::~Block_1x1() {
    delete this->imgBlock_1x1;
}

// 绘制函数
void Block_1x1::draw() {
    putimage(this->x, this->y, this->imgBlock_1x1);
}

// 更新函数
void Block_1x1::update() {

}